﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using HFK.DxFluentUI.HorizontalGrid;
using HFK.DxFluentUITest.Dummy.DataObjects;

namespace HFK.DxFluentUITest.Dummy
{
  public class HorizontalGridMasterDetailDataBinding : HorizontalGridControlBase
  {
    public HorizontalGridMasterDetailDataBinding()
    {
      View<ComplexClass>("View1",
        v1 =>
        {
          v1.AddColumn("Column1").BindToProperty(d => d.IntValue);
          v1.AddColumn("Column2").BindToProperty(d => d.StringValue);
          v1.AddDetailView<SingleHopClass>("DetailView1",
            v11 =>
            {
              v11.AddColumn("Dv1Column2").BindToProperty(d => d.StringValue);
            });
        });
    }
  }
}
